/**
 * Created by cuppi on 2017/6/14.
 */
const path = require('path');
const exec = require('child_process').exec;
const comment = path.resolve(__dirname, './');

function buildDist() {
  console.log('开始打包');
  exec('npm run build', {cwd: comment}, (error, stdout, stderr) => {
    if (error) {
      console.log(error);
      return;
    }
    console.log(stdout);
  });
}


buildDist();
